/**********************************************************
 * File description:TargetService.h
 * Function:靶基因管理类
 * Current Version: 1.0.0
 * Author: 夏新宇
 * Date: 2022-10-06
 *  -----
 *  Copyright by BoKun Software.
 **********************************************************/

#ifndef TARGETSERVICE_H
#define TARGETSERVICE_H

#include <QCoreApplication>
#include <QDebug>
#include "SqliteDriver.h"
#include "QPCRDB.h"
#include "QPCR.h"
#include "Constant.h"
#include "Convertion.h"
#include "XmlParser.h"

class TargetService
{
public:
    TargetService();
    ~TargetService();
    void create(Target target); //新增靶基因
    void update(Target target); //更新靶基因信息
    void remove(int targetId); //根据id删除靶基因
    QList<QHash<QString,QString>> show(); //查询靶基因数据表中所有数据

private:
    QString path;
    SqliteDriver * sqlD;
    Simplexml * simplexml;
    Convertion * conv;
};

#endif // TARGETSERVICE_H
